/**
 * Created by 佳明 on 2016/7/4.
 */
$(function () {
    //定义模型类
    window.Test = Backbone.Model.extend({
      default:{
          content:''
      }
    })
    //创建集合模型类
    window.TestList = Backbone.Collection.extend({
        model:Test,
    })
    //向模型集合添加数据
    var data = new TestList({
        content:"helo world"
    })
    //创建view对象
    window.TestView = Backbone.View.extend({
        el:$('body'),
        initialize:function(){
            $('#divTip').html(data.models[0].get("content"));
        }
    })
    //实例化View对象
    window.App = new TestView;
})